package 访问者设计模式;

public abstract class Vistitor {
    String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public abstract void visit(Amoxicillin amoxicillin);

    public abstract void visit(Painkiller painkiller);
}
